﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class ThoiGian
{
    int nam;
    int thang;
    int ngay;
    int gio;
    int phut;
    int giay;
    static readonly DateTime dt;

    public ThoiGian(System.DateTime dt)
    {
        nam = dt.Year;
        thang = dt.Month;
        ngay = dt.Day;
        gio = dt.Hour;
        phut = dt.Minute;
        giay = dt.Second;

    }

    // nap chong
    public ThoiGian() { 
    }

    public void displayTime()
    {
        Console.WriteLine("Current Time: {0}/{1}/{2}/{3}/{4}/{5}", nam, thang, ngay, gio, phut, giay);
    }

    // truyen tham so, tham chieu
    public void truyenThamSo(int a, int b) {
        a = 1;
        b = 2;
    }

    public void truyenThamChieu(ref int a, ref int b) {
        a = 1;
        b = 2;
    }

}

